package com.hyx.bookManager.service;

import com.hyx.bookManager.domain.common.CommonResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;

@Service
public interface BookService {
    CommonResult insertBook(Long tagId, MultipartFile[] file, String name, String desc, Integer num);

    CommonResult updateBookState(Integer state, Long bookId);

    CommonResult borrowingBook(LocalDateTime now, LocalDateTime after, Long bookId, String id);

    CommonResult getBookByTagId(Integer page, Integer pageSize, Long tagId);

    CommonResult getCurrentBookData(LocalDateTime befor, LocalDateTime now);

    CommonResult getAllBook(Integer page, Integer pageSize, Long tagId, Byte bookStatus);

    CommonResult getBookCount(Integer pageSize, String tagId, String status);

    CommonResult getMyBorrowingBook(String id, String page, String pageSize);

    CommonResult getBookTotalPage(Long pageSize, String tagId);
}
